-module(shop1).
-export([total/1]).

total([]) -> 0;
total([{Name, N}|T]) -> shop:cost(Name) * N + total(T).
